package day16.feifei;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\temp");
        file.mkdir();
        File file1 = new File("D:\\temp\\text.txt");
        boolean newFile = file1.createNewFile();
        boolean exists = file1.exists();
        if (exists) {
            System.out.println(file1.getName());
        }

    }
}
